.class public Lcom/estrongs/android/pop/app/analysis/daily/a;
.super Ljava/lang/Object;
.source "DailyManager.java"


# static fields
.field private static c:Lcom/estrongs/android/pop/app/analysis/daily/a;


# instance fields
.field private a:Les/qk;

.field private b:Ljava/lang/String;


# direct methods
.method private constructor <init>()V
    .locals 2

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance v0, Les/qk;

    invoke-direct {v0}, Les/qk;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/analysis/daily/a;->a:Les/qk;

    .line 3
    new-instance v0, Lcom/estrongs/android/util/j;

    const-string v1, "daily_cms_status"

    invoke-direct {v0, v1}, Lcom/estrongs/android/util/j;-><init>(Ljava/lang/String;)V

    return-void
.end method

.method public static a(Ljava/util/Date;)I
    .locals 3

    const/4 v0, 0x7

    new-array v1, v0, [I

    .line 15
    fill-array-data v1, :array_0

    .line 16
    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v2

    .line 17
    invoke-virtual {v2, p0}, Ljava/util/Calendar;->setTime(Ljava/util/Date;)V

    .line 18
    invoke-virtual {v2, v0}, Ljava/util/Calendar;->get(I)I

    move-result p0

    add-int/lit8 p0, p0, -0x1

    if-gez p0, :cond_0

    const/4 p0, 0x0

    .line 19
    :cond_0
    aget p0, v1, p0

    return p0

    nop

    :array_0
    .array-data 4
        0x0
        0x1
        0x2
        0x3
        0x4
        0x5
        0x6
    .end array-data
.end method

.method public static b()Lcom/estrongs/android/pop/app/analysis/daily/a;
    .locals 2

    .line 1
    sget-object v0, Lcom/estrongs/android/pop/app/analysis/daily/a;->c:Lcom/estrongs/android/pop/app/analysis/daily/a;

    if-nez v0, :cond_1

    .line 2
    const-class v0, Lcom/estrongs/android/pop/app/analysis/daily/a;

    monitor-enter v0

    .line 3
    :try_start_0
    sget-object v1, Lcom/estrongs/android/pop/app/analysis/daily/a;->c:Lcom/estrongs/android/pop/app/analysis/daily/a;

    if-nez v1, :cond_0

    .line 4
    new-instance v1, Lcom/estrongs/android/pop/app/analysis/daily/a;

    invoke-direct {v1}, Lcom/estrongs/android/pop/app/analysis/daily/a;-><init>()V

    sput-object v1, Lcom/estrongs/android/pop/app/analysis/daily/a;->c:Lcom/estrongs/android/pop/app/analysis/daily/a;

    .line 5
    :cond_0
    monitor-exit v0

    goto :goto_0

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1

    .line 6
    :cond_1
    :goto_0
    sget-object v0, Lcom/estrongs/android/pop/app/analysis/daily/a;->c:Lcom/estrongs/android/pop/app/analysis/daily/a;

    return-object v0
.end method


# virtual methods
.method public a()V
    .locals 1

    .line 8
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/daily/a;->a:Les/qk;

    invoke-virtual {v0}, Les/qk;->a()V

    return-void
.end method

.method public a(Landroid/app/Activity;)V
    .locals 2

    .line 9
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-direct {v0, p1, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v1, "com.estrongs.android.pop.app.analysis.AnalysisSceneDialog"

    .line 10
    invoke-virtual {v0, v1}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    const/high16 v1, 0x4000000

    .line 11
    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 12
    invoke-virtual {p1, v0}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V

    .line 13
    invoke-virtual {p1}, Landroid/app/Activity;->finish()V

    return-void
.end method

.method public a(Landroid/content/Context;)V
    .locals 2

    .line 1
    instance-of v0, p1, Lcom/estrongs/android/pop/FexApplication;

    if-eqz v0, :cond_0

    .line 2
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-direct {v0, p1, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v1, "show_disk_daily_report"

    .line 3
    invoke-virtual {v0, v1}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    const/high16 v1, 0x14000000

    .line 4
    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    goto :goto_0

    .line 5
    :cond_0
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;

    invoke-direct {v0, p1, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 6
    :goto_0
    invoke-virtual {p1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    return-void
.end method

.method public a(Les/qk$d;)V
    .locals 1

    .line 7
    iget-object v0, p0, Lcom/estrongs/android/pop/app/analysis/daily/a;->a:Les/qk;

    invoke-virtual {v0, p1}, Les/qk;->a(Les/qk$d;)V

    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;)V
    .locals 2

    .line 14
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "("

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "-"

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, ")"

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/pop/app/analysis/daily/a;->b:Ljava/lang/String;

    return-void
.end method

.method public b(Landroid/content/Context;)V
    .locals 2

    .line 7
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/estrongs/android/pop/app/analysis/daily/NewFileDailyActivity;

    invoke-direct {v0, p1, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const/high16 v1, 0x4000000

    .line 8
    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 9
    invoke-virtual {p1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    return-void
.end method
